import request from '@/utils/request'

// 查询Sms列表
export function listCertification(query) {
  return request({
    url: '/system/certification/list',
    method: 'get',
    params: query
  })
}

// 查询Sms详细
export function getCertification(applyId) {
  return request({
    url: '/system/certification/' + applyId,
    method: 'get'
  })
}

// 新增Sms
export function addCertification(data) {
  return request({
    url: '/system/certification',
    method: 'post',
    data: data
  })
}

// 修改Sms
export function updateCertification(data) {
  return request({
    url: '/system/certification',
    method: 'put',
    data: data
  })
}

// 删除Sms
export function delCertification(applyId) {
  return request({
    url: '/system/certification/' + applyId,
    method: 'delete'
  })
}
//审核
export function auditCertification(data) {
  return request({
    url: '/system/certification/audit',
    method: 'put',
    data: data
  })
}
//下载
export function downloadCertificationFiles(applyId) {
  return request({
    url: '/system/certification/download/' + applyId,
    method: 'get'
  })
}
